<template>
	<view class="customPage">
		<u-parse :html="info"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: '',
			};
		},
		methods: {
			getAgreement: function () {
				uni.showLoading({
					title: '加载中'
				})
				this.$u.api.getAgreementApi().then(res=>{
					if(res.code==1){
						this.info = res.data.active_agreement
					}
				});
			},
		},
		onLoad: function () {
			this.getAgreement()
		},
	}
</script>

<style lang="scss">
	.customPage{
		padding: 20rpx;
	}
</style>
